<link rel="stylesheet" type="text/css" href="../addons/jy_renwu/resource/task.css"/>
<title>任务中心</title>
	<div class="fui-page task-list ">
		<div class="fui-header">
            <div class="fui-header-left">
                <a class="back2 external" ng-click="goback()"></a>
            </div>
            <div class="title">我的任务</div>
            <div class="fui-header-right">
            </div>
        </div>
		<div id="tab" class="fui-tab fui-tab-danger">     
        <a ng-class="{'external active':pagedata.status == 1}" href="javascript:" ng-click="access_json('jy_renwu/mine//status=1')">进行中</a>
        <a ng-class="{'external active':pagedata.status == 2}" href="javascript:" ng-click="access_json('jy_renwu/mine//status=2')">已完成</a>
        <a ng-class="{'external active':pagedata.status == 3}" href="javascript:" ng-click="access_json('jy_renwu/mine//status=3')">已失败</a>

		</div>
		<div class="fui-content" style="margin-top:3.6rem">
			
			<div ng-if="pagedata.list.length==0" style="height: 7rem;line-height:7rem;width: 100%;text-align: center;color: #d0d0d0;font-size: 1rem">暂时没有任何任务</div>
	
			<div class="mytask-list-group">
			
				<a ng-repeat="record in pagedata.list" class="mytask-list">
					<div class="mytask-list-top">
						<div class="mytask-list-media">
							<img src="{{tomedia(record.taskimage)}}"/>
						</div>
						<div class="mytask-list-inner">
							<div class="title">{{record.tasktitle}}</div>
							<div class="time">
								<p>领取时间：{{record.picktime}}</p>
								<p>截至时间：{{ifelse(record.stoptime=='0000-00-00 00:00:00','无',record.stoptime)}}
								
							</p>
							</div>
						</div>
						<div class="mytask-list-right">
							<div ng-if="pagedata.status==1">进行中</div>
							<div ng-if="pagedata.status==2">已完成</div>
							<div ng-if="pagedata.status!=1 && pagedata.status!=2">已失败</div>
				
							<div class="detail" href="javascript:;" ng-click="access_json('/detail//rid='+record.id)">
								详情</div>
						</div>
					</div>
					<div class="mytask-progress">
						进度
						<div class="progress">
							<div class="progress-inner" style="width: {{record.task_progress/record.task_demand*100}}%;"></div>
						</div>
						<span class="times">{{record.task_progress}}/{{record.task_demand}}</span>
					</div>
				</a>
			</div>
		</div>
	</div>
<div ng-include="sys_html('_footer')"></div>	
